﻿using System;

class NumbersFrom1ToN
{
    static void Main()
    {
        Console.WriteLine("A program that prints all the numbers in the interval [1..n], each on a single line.\r\n");
        Console.Write("Please enter a positive number: ");
        string consoleInput = Console.ReadLine();
        int n = int.Parse(consoleInput);
        Console.WriteLine("The numbers from 1 to {0} are:", n);
        for (int i = 1; i <= n; i++)
        {
            Console.WriteLine(i);
        }
    }
}
